package cn.wolfcode.wolf2w.redis.service;

import cn.wolfcode.wolf2w.domain.UserInfo;

public interface IUserInfoRedisService {

	/**
	 * 设置验证码有效时间
	 * @param phone
	 * @param code
	 */
	void setVerifyCode(String phone, String code);

	String getVerifyCode(String phone);

	void setToken(String token,UserInfo user);

	UserInfo getUserByToken(String token);
}
